/**
 * 广寒宫
 * 网址:www.guanghangong.xyz
 */
package com.moon.admin.framework.mybatisplus.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 包含审计信息的基础类实体
 * @author moon
 */
@Getter
@Setter
public class Entity implements Serializable{

	@TableField(exist=false)
	private static final long serialVersionUID = 8530709993123808311L;
    
	@ApiModelProperty(value = "状态（0正常 1删除）",allowableValues = "0,1",hidden = true)
    @TableLogic
    private Integer deleted;
    
	@ApiModelProperty(value = "创建者",hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;
    
	@ApiModelProperty(value = "创建者所在部门",hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer createDept;

	@ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
	@ApiModelProperty(value = "更新者",hidden = true)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateBy;

	@ApiModelProperty(value = "更新时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}